

.big-box{
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100vh;
    display: flex;
    // 背景图片现在通过内联样式动态设置
    // 不平铺
    background-repeat: no-repeat;
    // 背景图居中
    background-position: center;
    // 背景图大小
    background-size: cover;
    // 背景图固定
    background-attachment: fixed;
    // 背景图透明度

    .title{
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: auto;
        padding: 12px 24px;
        border: 2px solid rgba(0, 212, 255, 0.8);
        border-radius: 12px;
        font-size: 50px;
        font-weight: 700;
        color: #ffffff;
        text-align: center;
        letter-spacing: 3px;
        text-transform: uppercase;
        
        // 科技感背景渐变
        background: linear-gradient(135deg, 
            rgba(0, 212, 255, 0.15) 0%, 
            rgba(0, 153, 204, 0.1) 50%, 
            rgba(0, 212, 255, 0.15) 100%);
        backdrop-filter: blur(10px);
        
        // 发光效果
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.4),
            0 0 40px rgba(0, 212, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        
        // 文字发光
        text-shadow: 
            0 0 10px rgba(0, 212, 255, 0.8),
            0 0 20px rgba(0, 212, 255, 0.6),
            0 0 30px rgba(0, 212, 255, 0.4);
        
        // 悬停效果
        transition: all 0.3s ease;
        cursor: default;
        
        &:hover {
            border-color: rgba(0, 212, 255, 1);
            box-shadow: 
                0 0 30px rgba(0, 212, 255, 0.6),
                0 0 60px rgba(0, 212, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            transform: translateX(-50%) translateY(-2px);
        }
        
        // 伪元素创建扫描线效果
        &::before {
            content: '';
            position: absolute;
            top: 6px;
            left: 6px;
            right: 6px;
            bottom: 6px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                transparent 45%,
                rgba(255, 255, 255, 0.4) 50%,
                transparent 55%,
                transparent 100%);
            background-size: 200% 100%;
            animation: scanLine 4s ease-in-out infinite;
            border-radius: 4px;
            overflow: hidden;
        }
        
        // 伪元素创建边框光效
        &::after {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, 
                rgba(0, 212, 255, 0.6), 
                rgba(255, 255, 255, 0.3), 
                rgba(0, 212, 255, 0.6));
            background-size: 200% 200%;
            z-index: -1;
            border-radius: 14px;
            filter: blur(4px);
            animation: borderGlow 3s ease-in-out infinite;
        }
    }

    .perpoect{
        width: 35%;
        height: 100%;
        margin-right: 100px;
        position: relative;
        z-index: 1;

        // 进入展馆按钮样式 - 与选择器风格统一
        .ant-btn {
            background: rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(0, 212, 255, 0.6);
            border-radius: 8px;
            color: #ffffff;
            font-size: 18px;
            font-weight: 600;
            letter-spacing: 0.5px;
            padding: 12px 20px;
            height: 50px;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
            transition: all 0.3s ease;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;

            // 悬停效果
            &:hover {
                background: rgba(0, 0, 0, 0.4);
                border-color: rgba(0, 212, 255, 0.8);
                box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
                transform: translateY(-1px);
            }

            // 点击效果
            &:active {
                transform: translateY(0);
                box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
            }

            // 聚焦状态
            &:focus {
                border-color: rgba(0, 212, 255, 0.8);
                box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
            }
        }

        // 调整左侧选择框字体大小
        .ant-select {
            .ant-select-selector {
                font-size: 18px !important;
                font-weight: 600 !important;
                color: #ffffff !important;
                background: rgba(0, 0, 0, 0.3) !important;
                border: 2px solid rgba(0, 212, 255, 0.6) !important;
                border-radius: 8px !important;
                backdrop-filter: blur(10px);
                box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2) !important;
            }

            .ant-select-selection-item {
                font-size: 18px !important;
                font-weight: 600 !important;
                color: #ffffff !important;
                text-align: center;
            }

            .ant-select-arrow {
                color: #00d4ff !important;
                font-size: 16px !important;
            }

            &:hover .ant-select-selector {
                border-color: #00d4ff !important;
                box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4) !important;
            }

            &.ant-select-focused .ant-select-selector {
                border-color: #00d4ff !important;
                box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2) !important;
            }
        }

        // 下拉选项样式
        .ant-select-dropdown {
            background: rgba(0, 0, 0, 0.95) !important;
            backdrop-filter: blur(15px);
            border: 2px solid rgba(0, 212, 255, 0.6) !important;
            border-radius: 12px !important;
            box-shadow: 0 12px 30px rgba(0, 212, 255, 0.4) !important;
            overflow: hidden;

            .ant-select-item {
                font-size: 16px !important;
                font-weight: 500 !important;
                color: #ffffff !important;
                padding: 14px 20px !important;
                margin: 2px 8px !important;
                border-radius: 8px !important;
                transition: all 0.3s ease !important;

                // 只保留选中状态的样式
                &.ant-select-item-option-selected {
                    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(0, 153, 204, 0.3)) !important;
                    color: #ffffff !important;
                    font-weight: 600 !important;
                    border: 1px solid rgba(0, 212, 255, 0.8) !important;
                    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4) !important;
                    position: relative;
                }

                // 选中状态的发光指示器
                &.ant-select-item-option-selected::after {
                    content: '';
                    position: absolute;
                    top: 50%;
                    right: 12px;
                    width: 6px;
                    height: 6px;
                    background: #00d4ff;
                    border-radius: 50%;
                    transform: translateY(-50%);
                    box-shadow: 0 0 10px #00d4ff;
                }
            }

            // 滚动条样式
            &::-webkit-scrollbar {
                width: 6px;
            }

            &::-webkit-scrollbar-track {
                background: rgba(0, 0, 0, 0.3);
                border-radius: 3px;
            }

            &::-webkit-scrollbar-thumb {
                background: rgba(0, 212, 255, 0.6);
                border-radius: 3px;
            }

            &::-webkit-scrollbar-thumb:hover {
                background: rgba(0, 212, 255, 0.8);
            }
        }
    }


    .video-box{
        width: 1000px;
        height: 500px;
        background: transparent;
        margin-top: 200px;
        position: relative;
        // margin: 100px;
        // border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 10px;

        .video-border{
            width: 100%;
            height: 100%;
            position: relative; /* 作为定位上下文 */
            // 背景图片现在通过内联样式动态设置
            background-repeat: no-repeat; /* 不平铺 */
            background-position: center;  /* 居中 */
            background-size: 100% 100%;   /* 铺满盒子 */
            border-radius: 10px;

            .video{
                position: absolute;
                inset: 10% 4% 10% 5%; /* 内缩，避免盖住边框，可按需微调 */
                width: 89%;
                height: 80%;
                max-width: 92%;
                max-height: 82%;
                object-fit: cover;
                border-radius: 30px;
                z-index: 1;
            }

            // 让弹幕容器与视频可视区域完全一致
            .danmaku-container{
                position: absolute;
                inset: 10% 6% 10% 5%;
                width: auto;
                height: auto;
                z-index: 2;
                pointer-events: none;
                overflow: hidden;
                border-radius: 30px;
            }
        }
    }

    /* 语音识别布局 - 圆圈与字幕框 */
    .sr-container{ position: absolute; inset: 0; pointer-events: auto; }
    .sr-circle{
        position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
        width: 96px; height: 96px; border-radius: 50%;
        border: 2px solid rgba(0,212,255,0.85);
        box-shadow: 0 0 18px rgba(0,212,255,0.45);
        display: inline-flex; align-items: center; justify-content: center;
        background: rgba(0,0,0,0.35);
        color: #fff; font-weight: 600; letter-spacing: 1px;
        cursor: pointer; z-index: 5; pointer-events: auto;
        transition: background .2s, box-shadow .2s, transform .1s;
    }
    .sr-circle.idle{ background: rgba(0,0,0,0.35); }
    .sr-circle.recording{ background: rgba(255,0,0,0.35); box-shadow: 0 0 22px rgba(255,0,0,0.45); }
    .sr-circle.busy{ background: rgba(255,165,0,0.35); box-shadow: 0 0 22px rgba(255,165,0,0.45); }
    .sr-panel{
        width: 520px; min-height: 48px; padding: 10px 14px; color:#fff;
        background: rgba(6,14,24,0.72); border:1.5px solid rgba(0,212,255,0.5);
        box-shadow: 0 6px 24px rgba(0,212,255,0.15), inset 0 0 0 1px rgba(0,212,255,0.1);
        border-radius: 10px; pointer-events: auto;
    }
    /* 垂直栈，自动根据内容高度分布，避免重叠 */
    .sr-stack{
        position: absolute; left: 50%; transform: translateX(-50%);
        bottom: 155px; display: flex; flex-direction: column; gap: 16px; align-items: center;
        z-index: 4; pointer-events: auto;
    }
    .sr-stack .sr-panel{ pointer-events: auto; }

    // 按钮组容器 - 放置在右上角红色框区域
    .button-group {
        position: absolute;
        top: 120px;
        right: 100px;
        z-index: 1000;
        display: flex;
        gap: 12px;
    }

    // 语言切换按钮 - 统一样式
    .language-change-btn {
        position: relative;
        padding: 12px 20px;
        background: rgba(0, 0, 0, 0.3);
        border: 2px solid rgba(0, 212, 255, 0.6);
        border-radius: 8px;
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
        letter-spacing: 0.5px;
        min-width: 120px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;

        // 悬停效果
        &:hover {
            background: rgba(0, 0, 0, 0.4);
            border-color: rgba(0, 212, 255, 0.8);
            box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
            transform: translateY(-1px);
        }

        // 点击效果
        &:active {
            transform: translateY(0);
            box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
        }

        // 聚焦状态
        &:focus {
            border-color: rgba(0, 212, 255, 0.8);
            box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
        }

        // 按钮文字
        .btn-text {
            position: relative;
            z-index: 2;
            transition: all 0.3s ease;
        }
    }

    // 换肤按钮 - 统一样式
    .skin-change-btn {
        position: relative;
        padding: 12px 20px;
        background: rgba(0, 0, 0, 0.3);
        border: 2px solid rgba(0, 212, 255, 0.6);
        border-radius: 8px;
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
        letter-spacing: 0.5px;
        min-width: 120px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;

        // 悬停效果
        &:hover {
            background: rgba(0, 0, 0, 0.4);
            border-color: rgba(0, 212, 255, 0.8);
            box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
            transform: translateY(-1px);
        }

        // 点击效果
        &:active {
            transform: translateY(0);
            box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
        }

        // 聚焦状态
        &:focus {
            border-color: rgba(0, 212, 255, 0.8);
            box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
        }

        // 按钮文字
        .btn-text {
            position: relative;
            z-index: 2;
            transition: all 0.3s ease;
        }
    }

    // 退出按钮 - 统一样式，但使用红色主题
    .exit-btn {
        position: relative;
        padding: 12px 20px;
        background: rgba(0, 0, 0, 0.3);
        border: 2px solid rgba(255, 107, 107, 0.6);
        border-radius: 8px;
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
        letter-spacing: 0.5px;
        min-width: 120px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;

        // 悬停效果
        &:hover {
            background: rgba(0, 0, 0, 0.4);
            border-color: rgba(255, 107, 107, 0.8);
            box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
            transform: translateY(-1px);
        }

        // 点击效果
        &:active {
            transform: translateY(0);
            box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
        }

        // 聚焦状态
        &:focus {
            border-color: rgba(255, 107, 107, 0.8);
            box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
        }

        // 按钮文字
        .btn-text {
            position: relative;
            z-index: 2;
            transition: all 0.3s ease;
        }
    }

    // 弹幕控制面板样式
    .danmaku-control {
        position: absolute;
        top: calc(100% + 12px);
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 80%;
        max-width: 720px;

        .danmaku-toggle-btn,
        .danmaku-settings-btn,
        .danmaku-clear-btn {
            padding: 8px 16px;
            background: linear-gradient(135deg, #ff6b6b, #ee5a52);
            border: 2px solid #ff6b6b;
            border-radius: 6px;
            color: #ffffff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);

            &:hover {
                background: linear-gradient(135deg, #ff5252, #d32f2f);
                border-color: #ff5252;
                box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
                transform: translateY(-1px);
            }

            &.disabled {
                background: linear-gradient(135deg, #666, #555);
                border-color: #666;
                box-shadow: 0 2px 8px rgba(102, 102, 102, 0.3);
            }
        }

        .danmaku-settings-panel {
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 107, 107, 0.6);
            border-radius: 8px;
            padding: 15px;
            margin-top: 10px;
            min-width: 250px;

            .setting-item {
                margin-bottom: 15px;

                label {
                    display: block;
                    color: #ffffff;
                    font-size: 14px;
                    margin-bottom: 5px;
                }

                input[type="range"] {
                    width: 100%;
                    height: 4px;
                    background: #333;
                    border-radius: 2px;
                    outline: none;

                    &::-webkit-slider-thumb {
                        appearance: none;
                        width: 16px;
                        height: 16px;
                        background: #ff6b6b;
                        border-radius: 50%;
                        cursor: pointer;
                    }
                }
            }
        }

        .danmaku-send-panel {
            background: rgba(6, 14, 24, 0.72);
            backdrop-filter: blur(10px);
            border: 1.5px solid rgba(0, 212, 255, 0.5);
            box-shadow: 0 6px 24px rgba(0, 212, 255, 0.15), inset 0 0 0 1px rgba(0, 212, 255, 0.1);
            border-radius: 10px;
            padding: 10px 12px;
            margin-top: 0;
            min-width: 300px;
            display: flex;
            align-items: center;
            gap: 10px;

            input[type="text"] {
                width: 40%;
                padding: 8px 12px;
                background: rgba(255, 255, 255, 0.06);
                border: 1px solid rgba(0, 212, 255, 0.3);
                border-radius: 4px;
                color: #ffffff;
                font-size: 14px;
                margin: 0;

                &::placeholder {
                    color: rgba(255, 255, 255, 0.6);
                }

                &:focus {
                    outline: none;
                    border-color: #ff6b6b;
                    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
                }
            }

            .danmaku-style-controls {
                display: flex;
                gap: 8px;
                margin: 0;
                align-items: center;

                input[type="color"] {
                    width: 30px;
                    height: 30px;
                    border: none;
                    border-radius: 4px;
                    cursor: pointer;
                }

                select {
                    padding: 6px 8px;
                    background: rgba(255, 255, 255, 0.06);
                    border: 1px solid rgba(0, 212, 255, 0.3);
                    border-radius: 4px;
                    color: #ffffff;
                    font-size: 12px;

                    option {
                        background: #333;
                        color: #ffffff;
                    }
                }

                input[type="range"] {
                    width: 60px;
                    height: 4px;
                    background: rgba(255,255,255,0.15);
                    border-radius: 2px;
                    outline: none;

                    &::-webkit-slider-thumb {
                        appearance: none;
                        width: 12px;
                        height: 12px;
                        background: #00d4ff;
                        border-radius: 50%;
                        cursor: pointer;
                    }
                }
            }

            .emoji-inline { position: relative; display: flex; align-items: center; gap: 6px; }
            .emoji-toggle { padding: 6px 10px; background: linear-gradient(135deg, #00d4ff, #0099cc); border: 1px solid rgba(0,212,255,0.6); box-shadow: 0 4px 12px rgba(0, 212, 255, 0.25); }
            .emoji-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0; }
            .emoji-dropdown { position: absolute; top: calc(100% + 18px); left: 0; background: rgba(6,14,24,0.92); border: 1px solid rgba(0, 212, 255, 0.5); border-radius: 10px; padding: 10px; width: 300px; display: grid; grid-template-columns: repeat(6, 36px); justify-content: space-between; gap: 8px; box-shadow: 0 10px 30px rgba(0,212,255,0.2); z-index: 10; }

            .speed-label { color: #fff; display: flex; align-items: center; gap: 6px; font-size: 12px; }

            button {
                padding: 8px 16px;
                background: linear-gradient(135deg, #00d4ff, #0099cc);
                border: 1.5px solid rgba(0, 212, 255, 0.7);
                border-radius: 6px;
                color: #ffffff;
                font-size: 14px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s ease;

                &:hover {
                    background: linear-gradient(135deg, #00b8e6, #007aa3);
                    border-color: #00b8e6;
                    transform: translateY(-1px);
                }
            }

            .send-btn { 
                margin-left: 8px; 
                white-space: nowrap; 
                display: inline-flex; 
                align-items: center; 
                justify-content: center; 
                height: 36px; 
                padding: 0 14px; 
            }
            .input-group { display: flex; align-items: center; gap: 8px; flex: 1;margin-bottom: 0px; }
            .danmaku-toggle-btn { padding: 8px 12px; margin-right: 8px; }
            .input-group input[type="text"] { width: 100%; }
        }
    }
}

@media screen and (max-width: 768px) {
    .big-box{
        .perpoect{
            width: 50%;

            // 移动端选择框字体调整
            .ant-select {
                .ant-select-selector {
                    font-size: 16px !important;
                }

                .ant-select-selection-item {
                    font-size: 16px !important;
                }

                .ant-select-arrow {
                    font-size: 14px !important;
                }
            }

            .ant-select-dropdown {
                .ant-select-item {
                    font-size: 14px !important;
                    padding: 12px 16px !important;
                    margin: 1px 6px !important;

                    &:hover {
                        transform: translateX(2px);
                    }
                }
            }
        }

        .button-group {
            top: 10px;
            right: 10px;
            gap: 8px;
        }

        .language-change-btn,
        .skin-change-btn,
        .exit-btn {
            padding: 8px 16px;
            font-size: 14px;
            min-width: 100px;
            height: 40px;
        }
    }
}

@media screen and (max-width: 1200px) {
    .big-box{
        .perpoect{
            width: 40%;
        }
    }
}

// 标题动画关键帧
@keyframes scanLine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}